const defaultWidth = 100
export const tableHeaders = [
  {
    name: '用户编号',
    key: 'userId',
    wid: defaultWidth
  },
  {
    name: '用户工号',
    key: 'employeeId',
    wid: defaultWidth
  },
  {
    name: '用户名',
    key: 'userName',
    wid: defaultWidth
  },
  {
    name: '手机号',
    key: 'phone',
    wid: 120
  },
  {
    name: '区域编码',
    key: 'areaCode',
    wid: 130,
    slotName: 'areaCode'
  },
  {
    name: '用户类型',
    key: 'userTypeDescr',
    wid: defaultWidth
  },
  {
    name: '角色',
    key: 'roleNames',
    wid: defaultWidth
  },
  {
    name: '部门',
    key: 'departmentDescr',
    wid: defaultWidth
  },
  {
    name: '职称',
    key: 'professionalTitlesDescr',
    wid: defaultWidth
  },
  {
    name: '用户状态',
    key: 'statusDescr',
    wid: defaultWidth
  },
  {
    name: '有效起始日期',
    key: 'beginTime',
    wid: 160
  },
  {
    name: '有效截止日期',
    key: 'endTime',
    wid: 160
  },
  {
    name: '创建人',
    key: 'createBy',
    wid: defaultWidth
  },
  {
    name: '创建时间',
    key: 'createTime',
    wid: 140
  },
  {
    name: '修改人',
    key: 'updateBy',
    wid: defaultWidth
  },
  {
    name: '修改时间',
    key: 'updateTime',
    wid: 140
  },
  {
    name: '操作',
    wid: 220,
    fixed: 'right',
    showTooltip: false,
    slotName: 'operate'
  }
]
export const detailHeaders1 = [
  {
    name: '角色编码',
    key: 'roleId',
    wid: defaultWidth
  },
  {
    name: '角色名称',
    key: 'roleName',
    wid: defaultWidth
  }
]
export const detailHeaders2 = [
  {
    name: '区域编码',
    key: 'areaCode',
    wid: defaultWidth
  },
  {
    name: '区域名称',
    key: 'areaCodeDescr',
    wid: defaultWidth
  }
]
export const chooseHeaders = [
  {
    name: '用户工号',
    key: 'employeeId',
    wid: defaultWidth
  },
  {
    name: '用户名',
    key: 'userName',
    wid: defaultWidth
  },
  {
    name: '手机号',
    key: 'phone',
    wid: 120
  },
  {
    name: '区域编码',
    key: 'areaCode',
    wid: defaultWidth
  },
  {
    name: '用户类型',
    key: 'userTypeDescr',
    wid: defaultWidth
  },
  {
    name: '部门',
    key: 'departmentDescr',
    wid: defaultWidth
  }
]
export const searchItem = [
  {
    name: '姓名',
    key: 'userName'
  },
  {
    name: '用户工号',
    key: 'employeeId'
  },
  {
    name: '手机号',
    key: 'phone'
  },
  {
    name: '部门',
    key: 'department',
    type: 'select',
    children: []
  },
  {
    name: '区域',
    key: 'areaCode',
    type: 'select',
    children: []
  }
]
